package com.livedocumentation.client;

import java.util.ArrayList;

import com.google.gwt.core.client.EntryPoint;
import com.livedocumentation.client.facebook.FacebookAuthentication;
import com.livedocumentation.client.model.Project;
import com.livedocumentation.client.model.ProjectClass;
import com.livedocumentation.client.model.User;
import com.livedocumentation.client.web.MainPage;
import com.livedocumentation.client.webservices.project.RequestGetProjectRepository;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 * 
 * @Architecture
 */
public class GWTEntryPoint implements EntryPoint {

	public static Project currentProject;

	public static ArrayList<ProjectClass> sourceFeatures = null;

	public static User facebookUser;

	public void onModuleLoad() {

		String projectID = com.google.gwt.user.client.Window.Location
				.getParameter("projectID");

		String classPath = com.google.gwt.user.client.Window.Location
				.getParameter("classPath");

		new MainPage();

		new FacebookAuthentication();

		RequestGetProjectRepository.getJsonpRequest(projectID, classPath);
	}
}
